/**
 * @author xiaobyu
 * @created Jun 16, 2016
 * 
 */
package mdt.model;

public abstract class MDTMessage extends EdgeModel implements IMDTMessage {

	private static final long serialVersionUID = 1L;
	private MDTMessageType msgType;
	public MDTMessage(MDTMessageType msgType) {
		this(msgType, null, null);
	}

	public MDTMessage(MDTMessageType msgType, INodeModel client, INodeModel supplier) {
		super(client, supplier);
		this.msgType = msgType;
	}

	public static enum MDTMessageType {
		SEND,
		REPLY,
		DUAL,
		FAILED
	}

	public MDTMessageType getMessageType() {
		return msgType;
	}


}
